(function(){
	
	Ext.define('AppView.sys.role.SysRoleForm',{
		extend:'AppView.base.BaseForm',
		alias:'widget.sysroleform',
		defaults:{xtype:'textfield',labelWidth:60,anchor:'100%'},
		url:'/sys/role/save.do',
		items:[
			{
				hidden:true,
				name:'id'
			},
			{
				fieldLabel:'角色名称',
				allowBlank:false,
				name:'roleName'
			}
		]
	})
	
	Ext.define('AppView.sys.role.SysRoleWin',{
		extend:'AppView.base.FormWin',
		alias:'widget.sysrolewin',
		title:'角色',
		viewUrl:'/sys/role/view.do',
		height:300,
		items:[
			{
				xtype:'sysroleform'
			}
		]
	})
})()